Page({
    data: {
      item: {
        name: "雨伞",
        pickTime: "周三下午三点",
        pickPlace: "教学楼3211",
        description: "如图所示"
      }
    },
    // 联系失主逻辑
    contactOwner() {
      wx.showModal({
        title: "联系失主",
        content: "是否通过平台私信联系拾到者？",
        confirmText: "确认",
        cancelText: "取消",
        success(res) {
          if (res.confirm) {
            // 跳转到私信页面（需提前在 app.json 配置 pages/chat/chat）
            wx.navigateTo({
              url: "/pages/xiaoxi"
            });
          }
        }
      });
    },
    navigateToguangchang: function() {
        wx.navigateTo({
          url: '/pages/guangchang'
        });
      },
      navigateToxiaoxi: function() {
        wx.navigateTo({
          url: '/pages/xiaoxi'
        });
      }

  });